﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="disp_shiti.aspx.cs" Inherits="disp_shiti" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">  
    <table>
        <tr>
            <td style="width: 100px">
            <table width="650"  class="font33">
                    <tbody>
                        <tr>
                            <td style="width: 350px; height: 21px" class="font33">
                                <asp:Label ID="lblchaxunconj" runat="server" Text="查询条件"></asp:Label></td>
                            <td style="width: 120px; height: 21px">
                                <asp:DropDownList ID="ddlType1" runat="server"  Width="107px">
                                    <asp:ListItem Value="que_subject">测试题目</asp:ListItem>
                                    <asp:ListItem Value="que_type">考题类型</asp:ListItem>
                                    <asp:ListItem Value="Expr1">所属套题</asp:ListItem>
                                </asp:DropDownList></td>
                            <td style="width: 181px; height: 21px">
                                <asp:Label ID="lblchaxunconj2" runat="server"  Text="关键字"></asp:Label></td>
                            <td style="width: 260px; height: 21px">
                                <asp:TextBox ID="txtSelect" runat="server"  Width="100px"></asp:TextBox></td>
                            <td style="width: 279px; height: 21px">
                                <asp:Button ID="btnSelect" runat="server"  OnClick="btnSelect_Click"
                                    Text="查询" /></td>
                            <td style="width: 279px; height: 21px">
                                <asp:HyperLink ID="HyperLink1" runat="server" ImageUrl="~/images/zxdreturn.jpg" NavigateUrl="~/mystudy/myplatform.aspx">返回</asp:HyperLink></td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
                <asp:GridView ID="gvExamTitle" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="0px"
                    CellPadding="4" DataKeyNames="id" DataSourceID="SDSquestion"
                    ForeColor="Black" GridLines="Vertical" PageSize="16" Width="594px" cssclass="font33">
                    <FooterStyle BackColor="#CCCC99" />
                    <Columns>
                        <asp:BoundField DataField="que_subject" HeaderText="考试题目" />
                        <asp:BoundField DataField="score" HeaderText="分数" />
                        <asp:BoundField DataField="que_type" HeaderText="考试类型" />
                        <asp:BoundField DataField="Expr1" HeaderText="所属套题" />
                        <asp:BoundField DataField="xtsj1" HeaderText="加入时间" />
                        
                    </Columns>
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <HeaderStyle BackColor="#D9EDB2" Font-Bold="True" Font-Underline="False" ForeColor="Black" />
                    <RowStyle BackColor="#F7F7DE" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
                <asp:TextBox ID="txtid" runat="server" Enabled="False" Font-Bold="True" ReadOnly="True"
                    Visible="False" Width="50px"></asp:TextBox>
                <asp:TextBox ID="txtname" runat="server" Enabled="False" Font-Bold="True" ReadOnly="True"
                    Visible="False" Width="194px"></asp:TextBox>
            </td>
        </tr>
    </table>
    <br />
    <asp:SqlDataSource ID="SDSquestion" runat="server" ConnectionString="<%$ ConnectionStrings:gConnectionString %>"
        SelectCommand="SELECT * FROM [kecheng_question_taoti] WHERE ([que_lessonid] = @que_lessonid)">
        <SelectParameters>
            <asp:ControlParameter ControlID="txtid" Name="que_lessonid" PropertyName="Text" Type="Int64" />
        </SelectParameters>
    </asp:SqlDataSource>
</form>
</body>
</html>
